<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");

$_LangPath = "adminprogram";
include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Modules_Path."/Utility.lib.php");
include_once(__Modules_Path."/SQLUtility.lib.php");

$arrPower = CheckUsePower("lottoweb");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

$_strAdminProgram["Title"] = "Lotto All Web";
$arrWebClass = array(0 => "深圳", 1 => "合眾");
$arrWebClassBGColor = array(0 => "", 1 => "#99FFCC");
switch($_data["op"]){
	case "Add":							//新增表單
		include_once("Add.php");
		break;

	case "Insert":						//新增資料
		$data = $_data["data"];
		include_once("Insert.php");
		break;

	case "Edit":							//編輯表單
		include_once("Edit.php");
		break;

	case "Update":					//更改資料
		$data = $_data["data"];
		include_once("Update.php");
		break;

	case "Del":							//刪除資料
		include_once("Del.php");
		break;

	case "View":						//瀏覽單筆資料
		include_once("View.php");
		break;

	case "Search":					//搜尋表單
		include_once("Search.php");
		break;

	case "Lists":						//清單
		$data = $_data["data"];
		$_SESSION["Admin_Info"] -> $_LangPath = "";
		include_once("List.php");
		break;

	default:									//清單
		include_once("List.php");
		break;
}



?>